﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Models
{
    /// <summary>
    /// Provide a logic of the game object
    /// </summary>
    public class Stack
    {
        #region Fields

        private int _xPosition;

        private int _yPosition;

        private bool _fixed = false;

        private bool _falling = true;

        private static int _speed = 1;

        #endregion


        #region Properties
        public Stack(int xPos, int yPos)
        {
            this._xPosition = xPos;
            this._yPosition = yPos;
        }
        /// <summary>
        /// Gets/Sets X coordinate of stack
        /// </summary>
        public int XPosition
        {
            get
            {
                return this._xPosition;
            }
            set
            {
                this._xPosition = value;
            }
        }
        /// <summary>
        /// Gets/Sets Y coordinate of stack
        /// </summary>
        public int YPosition
        {
            get
            {
                return this._yPosition;
            }
            set
            {
                this._yPosition = value;
            }
        }

        /// <summary>
        /// Indicates if the stack is fixed
        /// </summary>
        public bool Fixed
        {
            get
            {
                return this._fixed;
            }
            set
            {
                this._fixed = value;
            }
        }

        /// <summary>
        /// Indicates if the stack is falling
        /// </summary>
        public bool Falling
        {
            get
            {
                return this._falling;
            }
            set
            {
                this._falling = value;
            }
        }

        public static int Speed
        {
            get
            {
                return _speed;
            }
            set
            {
                _speed = value;
            }
        }

        #endregion Properties
    }
}
